package com.ibm.spatiotemp.server.constants;

public class Constant {

	/*error code and meaning*/
	public static final int TENANT_ACCESS_SUCCEED = 100;
	public static final int TENANT_NOT_EXISITED = 101;
	
	/*db class predefined*/
	public static final String DB_CLASS_IFX = "informix";
	public static final String DB_CLASS_MYSQL = "mysql";
	public static final String DB_CLASS_MOCK = "mockdb";
	public static final String DB_CLASS_FAKE = "fakedb";
	public static final String DB_CLASS_DYNAMODB = "dynamodb";
	
	/*db access mode: index only and index with data*/
	public static final int DBACCESSMODE_DATAONLY = 0;
	public static final int DBACCESSMODE_IDXONLY = 1;
	public static final int DBACCESSMODE_IDXDATA = 2;
	
	public static final String DB_CLASS_MOCK_CONSTRING_MEM = "jdbc:hsqldb:mem:stests";
	public static final String DB_CLASS_MOCK_CONSTRING_FILE = "jdbc:hsqldb:file:stests";
	
	/*%s is data source name*/
	public static final String FAKE_MEMORYCACHE_MEM_TEMPLATE = "jdbc:hsqldb:mem:%S";
	
}
